
<?php if ($this->paginator->getTotalItemCount() > 0) :?>
    <ul class="thumbs thumbs_nocaptions">
        <?php foreach( $this->paginator as $photo ): ?>
          <li id="thumbs-photo-<?php echo $photo->photo_id ?>">
            <a class="thumbs_photo" href="<?php echo $photo->getHref().'/cid/'.$this->country->country_id; ?>">
              <span style="background-image: url(<?php echo $photo->getPhotoUrl('thumb.normal'); ?>);"></span>
            </a>
          </li>
        <?php endforeach;?>
     </ul>
    
    <?php if( $this->paginator->count() > 1 ): ?>
          <br />
          <?php echo $this->paginationControl(
            $this->paginator, null, null, array(
              'pageAsQuery' => false,
              'query' => $this->searchParams
              )); ?>
    <?php endif; ?>

<?php else:?>

<div class="tip"><span><?php echo $this->translate('There no photo in country. Click <a href="javascript:void(0)" onclick ="showTabAddPhoto()"> here </a> and select "Add Photo" in activity to add photo to this country.')?></span></div>
<?php endif; ?>